package com.yanqu.road.server.logic.system;

import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.VipMgr;
import com.yanqu.road.server.manger.log.LogMgr;

import java.math.BigInteger;

public class SystemOpenBeautyFund extends BaseSystemOpen {
    public SystemOpenBeautyFund(int systemId, GamePlayer player) {
        super(systemId, player);
    }

    @Override
    public void initSystem() {
        BigInteger earnSpeed = player.getUserInfo().getEarnSpeed();
        int titleId = player.getTitleId();
        long vipExp = player.getUserInfo().getVipExp();
        int vipLv = VipMgr.getVipLv(vipExp);
        LogMgr.addLogEarnSpeedFund(player.getUserId(), 6, earnSpeed, titleId, vipExp, vipLv);
    }
}
